<admintpl file="header" />
</head>
<body>
	<div class="wrap">
		<ul class="nav nav-tabs">
			
			<li class="active">添加楼宇</li>
		</ul>
		<form method="post" class="form-horizontal js-ajax-form" action="{:U('Guanlixiaoqu/lyadd_post')}">
			<fieldset>
				
				<div class="control-group">
					<label class="control-label">选择小区:</label>
                                        
					<div class="controls">
                                            
						<select name="areaid" onchange="onxz();"id="menu">
                                                    <option selected="selected" >请选择小区</option>
                                                    <foreach name="xqs" item="v">
							<option value="{$v.id}">{$v.name}</option>
                                                   </foreach>
						</select>
                                                  
						<span class="form-required">*</span>
					</div>
				</div>
				<div class="control-group">
					<label class="control-label">楼宇名称:</label>
					<div class="controls">
						<input type="text" name="lyname" id="app">
						<span class="form-required">*</span>
					</div>
				</div>
				<div class="control-group">
					<label class="control-label">单元数量:</label>
					<div class="controls">
						<input type="text" name="dynumber" id="model">
						<span class="form-required">*</span>
					</div>
				</div>
			
				<div class="control-group">
					<label class="control-label">楼宇层数:</label>
					<div class="controls">
						<input type="text" name="lycengshu">
						<span class="form-required">*</span>
					</div>
				</div>
				<div class="control-group">
					<label class="control-label">楼宇类型:</label>
					<div class="controls">
						<input type="text" name="lytype" id="action">
						<span class="form-required">*</span>
					</div>
				</div>
				<div class="control-group">
					<label class="control-label">楼宇结构:</label>
					<div class="controls">
						<input type="text" name="lyjiegou" id="action">
                                                <span class="form-required">*</span>
					</div>
				</div>
				<div class="control-group">
					<label class="control-label">楼宇朝向:</label>
                                        <div class="controls">
				                <input type="text" name="lychaoxiang" id="action">
                                                <span class="form-required">*</span>
				</div>
                                        </div>
                            <div class="control-group">
					<label class="control-label">备注:</label>
					<div class="controls">
						<input type="text" name="beizhu" id="action">
                                               
					</div>
				</div>
				<input type="text" style="display: none" name="xqname" id="xq"  value="" >
			</fieldset>
			<div class="form-actions">
				<button type="submit" class="btn btn-primary js-ajax-submit">{:L('ADD')}</button>
				<a class="btn" href="{:U('Guanlixiaoqu/louyuguanli')}">{:L('BACK')}</a>
			</div>
		</form>
	</div>
    <script>
        function onxz(){
          
           var e=document.getElementById('menu');
           var xq=document.getElementById('xq')
           var txt=e.options[e.selectedIndex].text;
           xq.value=txt;
        }
    </script>    
	<!--<script src="__PUBLIC__/js/common.js"></script>-->
</body>
</html>